package com.gtw.modules.api.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.gtw.modules.entity.TbActivity;

import java.util.List;
import java.util.Map;

public interface TbActivityServices {

    int deleteByPrimaryKey(Integer id);

    int insert(TbActivity record);

    int insertSelective(TbActivity record);

    TbActivity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbActivity record);

    int updateByPrimaryKeyWithBLOBs(TbActivity record);

    int updateByPrimaryKey(TbActivity record);

    Page<TbActivity> queryPageList(Page<TbActivity> pageUtil, Map<String, Object> map);

    /**
     * 查询所有活动
     * @return
     */
    List<TbActivity> foundAll();

    /**
     * 查询当天的抢购活动
     * @return
     */
    List<TbActivity> foundBySpike();

    /**
     * 查询未结束的活动
     * @return
     */
    List<TbActivity> findNoClosed();
}
